package com.joysuch.wwyt.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joysuch.wwyt.api.base.dto.ApiRoleDto;
import com.joysuch.wwyt.core.entity.BaseRole;

import java.util.List;

/**
 * @author zero
 * @since 2022/2/16 16:39
 */
public interface BaseRoleMapper extends BaseMapper<BaseRole> {
    
    List<ApiRoleDto> getListForApi(String roleName, String remark, Long tenentId, String orgCode);
    
    Page<ApiRoleDto> getListByPageForApi(Page<ApiRoleDto> apiRoleVoPage, String roleName, String remark, Long tenentId, String orgCode);
}
